package com.ruoyi.web.controller.app;

import com.ruoyi.order.domain.app.Vo.Banner;
import com.ruoyi.order.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 陈焕然
 * @version 1.0
 */
@Controller
@RequestMapping("/app")

public class BannerController {

    @Autowired
    private IProductService productService;
    @RequestMapping("indexImgs")
    @ResponseBody
    public List<Banner> getIndexImgs(){
        List<Banner> productPagesList = productService.getProductImgs();
        return productPagesList;
    }



}
